/**
 * Copyright � 2012 GestureSoft. ALL RIGHTS RESERVED.
 * This file contains proprietary and GestureSoft CONFIDENTIAL Information.
 * Use, disclosure or reproduction is prohibited.
 * 
 * @fileName MathUtil.as
 * @creationDate Aug 8, 2012
 * @author 
 * @version 1.0
 */
package com.gesturesoft.imultimax.model.utility
{
	
	public class MathUtil
	{
		
		public function MathUtil()
		{
			
		}
		
		/*
		**************************************************************************
		     Math Utility Function to Round the decimal places to desired one
		**************************************************************************
		*/
		
		public static function RoundDecimal(value:Number, decimalPlaces:int):Number 
		{
			
			var nExp:int = Math.pow(10,decimalPlaces) ; 
			var nRetVal:Number = Math.round(value * nExp) / nExp
			return nRetVal;
			
		}
		
		public static function RandomRange(low:Number, high:Number):int
		{
			
			return Math.floor(Math.random() * (high - low)) + low;
			
		}
		
	}
	
}